package com.dao;

import com.domain.Medical;
import com.domain.Patient;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since 2023-03-07
 */
@Mapper
public interface PatientDao extends BaseMapper<Patient> {
    @Select("select * from db2.patient where patient_name=#{name}")
    List<Patient> getByName(String name);

}
